home *** CD-ROM | disk | FTP | other *** search
/ Aminet 24 / Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso / Aminet / comm / misc / CapiRexxVoiceM.lha / am.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-08  |  1.7 KB  |  82 lines

  1. #ifndef AM_H
  2. #define AM_H
  3. /*
  4. **
  5. **    $Id: am.h,v 1.2 1995/10/07 02:52:29 chris Exp $
  6. **    $Revision: 1.2 $
  7. **
  8. **    $Filename: developer/am.h $
  9. **    $Author: chris $
  10. **    $Date: 1995/10/07 02:52:29 $ 
  11. **    $Portability: ANSI $
  12. **
  13. **    am
  14. **
  15. **    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF RELOG AG.
  16. **
  17. **    COPYRIGHT (C) 1992-1995 BY RELOG AG, ZUERICH. ALL RIGHTS RESERVED.
  18. **    NO PART OF THIS SOFTWARE MAY BE COPIED, REPRODUCED, OR TRANSMITTED
  19. **    IN ANY FORM OR BY ANY MEANS,  WITHOUT THE PRIOR WRITTEN PERMISSION
  20. **    OF RELOG AG.
  21. **
  22. */
  23.  
  24. #include "os.h"
  25. #include "capi-usr.h"
  26.  
  27. #include "arexx.h"
  28.  
  29.  
  30. #define NUMBERSIZE        32            /* Max ISDN number size */
  31. #define FILENAMESIZE    32            /* Max filename size */
  32. #define PATHSIZE        128            /* Max path size */
  33. #define PATHNAMESIZE    (128+32)    /* Max path + filename size */
  34.  
  35.  
  36. /*
  37. **    Struktur eines Anrufbeantworters
  38. */
  39. struct AnsweringMachine
  40. {
  41.     /*
  42.     **    Konfigurierbare Parameter
  43.     */
  44.     U8        Controller;                    /* Controller, auf dem er sitzt */
  45.     U8        MSN[NUMBERSIZE];            /* Nummer, auf der er abnimmt */
  46.     U8        RexxScript[PATHNAMESIZE];    /* Das auszuführende REXX-Script */
  47.  
  48.     /*
  49.     **    Interne Sachen
  50.     */
  51.     U32        PLCI;
  52.     U32        NCCI;
  53.     U8        PState;                        /* PLCI State */
  54.     U8        CallingNumber[NUMBERSIZE];    /* Nummer des Anrufers */
  55.  
  56.     struct BChannel *BChannel;            /* B-Kanal des Anrufs */
  57.     U32        Process;                    /* Handler-Prozess */
  58.  
  59.     struct BChannel_Job    *BGJob;            /* Hintergrundmusik-Job */
  60.  
  61.     char    KeyBuffer[16];                /* Die Touchtones */
  62.     U16        KeyBufferSize;                /* Anzahl gültige Touchtones im Puffer */
  63. };
  64.  
  65.  
  66. /*
  67. **    Prototypes
  68. */
  69.  
  70. U32
  71. SendCAPIMessage( CAPI_MESSAGE *, U8 * );
  72.  
  73. RexxFunc    RXFunc_Background;
  74. RexxFunc    RXFunc_Fade;
  75. RexxFunc    RXFunc_HangUp;
  76. RexxFunc    RXFunc_Play;
  77. RexxFunc    RXFunc_Record;
  78. RexxFunc    RXFunc_WaitKey;
  79.  
  80.  
  81. #endif
  82.